package com.antexpress.dao;

import com.antexpress.pojo.Employee;
import com.antexpress.pojo.ExpressDistribution;
import com.antexpress.pojo.MapTown;
import java.util.ArrayList;
import java.util.List;

public interface CourierDAO {
    int getAllRowCount();//获得快递员负责信息的总数
    ArrayList<ExpressDistribution> getAllExpressDistribution();//获得所有的快递员负责信息
    List<ExpressDistribution> getCourierForPage(int offset, int length);
    int getCountForPage();
    ExpressDistribution getCourierByTownId(String town);
    List<ExpressDistribution> getCouriersByDistrict(String district);
    List<ExpressDistribution> getCourierForPageByDistrict(String district,int offset, int length);
    List<ExpressDistribution> getCourierForPageByCity(String city);
    List<ExpressDistribution> getCourierForPageByCity(String city,int offset, int length);
    List<ExpressDistribution> getCourierForPageByProvince(String province);
    List<ExpressDistribution> getCourierForPageByProvince(String province,int offset, int length);
    boolean changeCourier(MapTown town,Employee courier);
    boolean deleteCourier(MapTown town);
}
